package records

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

func GetRecordsHandler(c *gin.Context) {
	ret, err := handleRecordsService()
	if err != nil {
		c.JSON(http.StatusBadRequest, nil)
		return
	}
	// c.JSON，返回json格式的数据
	c.JSON(http.StatusOK, ret)
}
